package com.wgl.yygh.repository;

import com.wgl.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author wgl
 * @version 1.0.0
 * @ClassName HospitalRepository.java
 * @Description TODO
 * @createTime 2022年02月05日 21:41:00
 */
@Repository
public interface HospitalRepository extends MongoRepository<Hospital,String> {
    /**
    * @Author: Wgl
    * @Description: 判断是否存在数据
    * @Date: 2022/2/5 22:07;
    * @param hospital : ;
    * @return: com.wgl.model.hosp.Hospital;
    */
    Hospital getHospitalByHoscode(String hospital);
    /**
    * @Author: Wgl
    * @Description: 根据医院名称模糊查询
    * @Date: 2022/2/8 22:46;
    * @param hosname: ;
    * @return: java.util.List<com.wgl.model.hosp.Hospital>;
    */
    List<Hospital> findHospitalByHosnameLike(String hosname);
}
